package hello;
import javax.microedition.lcdui.*;
import javax.microedition.media.MediaException;
import javax.microedition.media.control.VideoControl;


public class VideoCanvas extends Canvas {
    private     HelloMidlet midlet;
    Image image;
    
    public VideoCanvas(HelloMidlet m) 
    {
        this.setFullScreenMode(true);
        this.midlet = m;
        midlet.videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
        try 
        {           
            midlet.videoControl.setDisplayLocation(0, 0);           
            midlet.videoControl.setDisplaySize(176 , 208);            
        } catch (Exception e) {
            midlet.showException("Error", e, midlet.menuScreen);
        }
        midlet.videoControl.setVisible(true);
    }
    public void paint(Graphics g) {}
}

